package strategy.service;

import strategy.model.Cat;

public class WeightCompare implements Compartor<Cat> {
    @Override
    public int compare(Cat t1, Cat t2) {
        if (t1.getWeight()>t2.getWeight()){
            return 1;
        }else if (t1.getWeight()<t2.getWeight()){
            return -1;
        }else {
            return 0;
        }
    }
}
